package za.org.jcicada.datastore;

import java.util.Date;

import za.org.jcicada.genss.sensor.SensorURN;

/**
 * The IDataStoreServer interface allows a client to retrieve historical
 * sensor values from the datastore.
 */
public interface IDataStoreServer {
	void requestSensorHistory(IDataStoreClient client, SensorURN sensorURN, Date from, Date to);
	
	void requestStatusHistory(IDataStoreClient client, SensorURN sensorURN, Date from, Date to);

    /**
     * Inform the subject that the observer has disconnected.
     * 
     * @param client the client that is disconnecting
     */
    void informDisconnect(IDataStoreClient client);

}
